home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 21.zip
/
BS1 part 21
/
Professional Page v4.0 (1993)(Gold Disk)(Disk 1 of 4)[HD].7z
/
Professional Page v4.0 (1993)(Gold Disk)(Disk 1 of 4)[HD].adf
/
Hard_Drive_Installation
< prev
next >
Wrap
Text File
|
1993-01-30
|
17KB
|
611 lines
;*****************************************************
; Script to Install Professional Page 4.0
; :ts=2
; Copyright ©1993 GOLD DISK Inc.
;*****************************************************
(set rexx_size 0)
(set clip_size 0)
(set Pageflag 1)
(set FAISflag 2)
(set Fontsflag 4)
(set AEflag 8)
(set GrEflag 16)
(set Tutflag 32)
(set Clipflag 64)
(set Genieflag 128)
(set Fmanflag 256)
(set spflag 512)
(set BMFontsflag 1024)
;******************************************************
;* See what the user wants to install this round
;******************************************************
(set install_opts
(askoptions
(prompt
"Professional Page Hard-Disk Installation\n\n"
"Please select which programs and/or data you wish to install "
"now to your hard drive.")
(choices "Professional Page" "FAIS loader" "Fonts"
"Article Editor" "Graphics Editor" "Tutorial" "PDRAW Clips" "Genies"
"Font Manager" "Print Spooler")
(default -1)
(help
"Professional Page: Main program. (1020k)\n"
"FAIS loader: Converts Agfa fonts for use in Professional Page. (31k)\n"
"Fonts: Compugraphic (649k) and Amiga Fonts (k)\n"
"Article Editor: Text editor and spell checker. (91k)\n"
"Graphics Editor: Bit-map paint program. (62k)\n"
"Tutorial: Data files used by the tutorial procedure. (123k)\n"
"PDraw Clips: Structured graphics images. (830k)\n"
"Genies: Structured graphics images. (181k)\n"
"Font Manager: Adobe Font converter. (187k)\n"
"Print Spooler: Adobe Font converter. (123k)\n"
"\nTotal Space needed ..... (k)"
)
)
)
;*
;* See if this is actually an update, and if so be
;* sure they want program in same place
;*
(set ps_dest (getassign "PPage" "a"))
(if (<> ps_dest "") (if (AND install_opts Pageflag)
(if
(askbool
(prompt
"Your current copy of Professional Page appears to be located "
"in the drawer named \"" ps_dest "\". Do you want to update "
"(over-write) this version?")
(help
"The installer has determined that you may already have a "
"copy of Professional Page on your system. If this is wrong or "
"if you want Professional Page installed elsewhere answer NO; "
"otherwise, select YES.")
(default 1)
)
(set dummy 0)
(set ps_dest "")
)
))
;* install "Professional Page" option
(if (AND install_opts Pageflag) (if (= ps_dest "")
(
(set ps_dest
(askdir
(prompt
"Select the drawer where you would like\n "
"the drawer PPage4.0\n"
"created. Please click on Help for more info.")
(help
"The drawer \"PPage4.0\" will be created here to include "
"the program \"Professional Page\" and auxiliary programs and "
"data. CGFonts will also be created here if it "
"does not currently exist.")
(default @default-dest)
)
)
(set ps_dest (tackon ps_dest "PPage4.0"))
)
))
(if (= ps_dest "") (set ps_dest (tackon @default-dest "PPage4.0")))
(if (<> (exists ps_dest) 2) (makedir ps_dest (infos)))
;* install "CGFonts" option
(set cg_dest (getassign "CGFonts" "a"))
(if (AND install_opts Fontsflag)
(
(if (= cg_dest "")
(
(set cg_dest
(askdir
(prompt
"Select the drawer where you would like\nthe CG Fonts drawer\n"
"created. Press Help for more information.")
(help
"The drawer \"CGfonts\" will be created here and the "
"CompuGraphic Font files supplied with Professional Page "
"will be copied to this new drawer. If you need a new drawer "
"click on the \"Make New Drawer...\" button.")
(default ps_dest)
)
)
(set cg_dest (tackon cg_dest "CGFonts"))
)
)
(startup "PPage"
(prompt "I am going to add a new assign for \"CGFonts:\".")
(help
"Professional Page needs this assign for CG-type "
"fonts to work properly.")
(command "Assign CGFonts: \"" cg_dest "\"\n")
)
)
)
;* install "Fonts" option
(set font_dest (getassign "Fonts" "a"))
(if (AND install_opts Fontsflag)
(if
(askbool
(prompt
"Do you want Amiga BitMap fonts copied to your Fonts: Drawer? "
"These fonts will give an approximate on-screen representation of "
"some fonts which may be built into your PostScript Printer.")
(help
"Be careful here: there are quite a number of fonts which "
"could overflow your \"Fonts:\" directory if it is on Floppy.")
(default 0)
)
(set install_opts (OR install_opts BMFontsflag))
)
)
(if (AND install_opts BMFontsflag) (if (= font_dest "")
(
(set font_dest
(askdir
(prompt
"Select the drawer where you would like\nAmiga Fonts\n"
"installed. If you need a new drawer click on the "
"\"Make New Drawer...\" button.")
(help
"The Amiga Font files supplied with Professional Page "
"will be copied to this drawer.")
(default (tackon @default_dest "Fonts"))
)
)
(startup "PPage"
(prompt
"I am going to add a new assign for \"Fonts:\" "
"to your startup sequence file.")
(help
"Professional Page needs this assign for Amiga-type "
"fonts to work properly.")
(command "Assign Fonts: \"" font_dest "\"\n")
)
)
))
;* Install "FAIS loader" option
(if (AND install_opts FAISflag)
(
(set fs_dest
(askdir
(prompt
"Select the drawer where you would like\nthe FAIS loader\n"
"installed. If you need a new drawer click on the "
"\"Make New Drawer...\" button.")
(help
"The Program \"FAISLoad\" will be copied to this drawer.")
(default ps_dest)
)
)
(if (NOT (AND install_opts Pageflag)) (set ps_dest fs_dest))
(if (<> (exists ps_dest) 2) (makedir ps_dest (infos)))
)
)
;* Install "Font Manager" option
(if (AND install_opts Fmanflag)
(
(set fm_dest
(askdir
(prompt
"Select the drawer where you would like\nFont Manager\n"
"installed. If you need a new drawer click on the "
"\"Make New Drawer...\" button.")
(help
"The Program \"Font Manager\" and associated modules "
"will be copied to this drawer.")
(default ps_dest)
)
)
(if (NOT (AND install_opts Pageflag)) (set ps_dest fm_dest))
(if (<> (exists ps_dest) 2) (makedir ps_dest (infos)))
)
)
;* Install "Article Editor" option
(if (AND install_opts AEflag)
(
(set ae_dest
(askdir
(prompt
"Select the drawer where you would like\nArticle Editor\n"
"installed. If you need a new drawer click on the "
"\"Make New Drawer...\" button.")
(help
"The Program \"Article Editor\" will be copied to this drawer.")
(default ps_dest)
)
)
(if (NOT (AND install_opts Pageflag)) (set ps_dest ae_dest))
(if (<> (exists ps_dest) 2) (makedir ps_dest (infos)))
)
)
;* Install "Graphics Editor" option
(if (AND install_opts GrEflag)
(
(set pnt_dest
(askdir
(prompt
"Select the drawer where you would like\nGraphics Editor\n"
"installed. If you need a new drawer click on the "
"\"Make New Drawer...\" button.")
(help
"The Program \"GrE\" will be copied to this drawer.")
(default ps_dest)
)
)
(if (NOT (AND install_opts Pageflag)) (set ps_dest pnt_dest))
(if (<> (exists ps_dest) 2) (makedir ps_dest (infos)))
)
)
;* Install "Tutorial" option
(if (AND install_opts Tutflag)
(set tut_dest
(askdir
(prompt
"Select the drawer where you would like\nthe Tutorial drawer\n"
"created. Press Help for more information.")
(help
"The data files for the tutorial will be copied to this drawer.")
(default ps_dest)
)
)
)
;* Install "PDraw Clips" option
(if (AND install_opts Clipflag)
(set clip_dest
(askdir
(prompt
"Select the drawer where you would like the\nProfessional "
"Draw Clip Drawer\ncreated. Press Help for more information.")
(help
"Professional Draw Clips will be copied to this drawer.")
(default ps_dest)
)
)
)
;* Install "Print Spooler" option
(if (AND install_opts spflag)
(
(set spo_dest
(askdir
(prompt
"Select the drawer where you would like\nPrint Spooler\n"
"installed. If you need a new drawer click on the "
"\"Make New Drawer...\" button.")
(help
"The Program \"ProSpool\" will be copied to this drawer.")
(default ps_dest)
)
)
(if (NOT (AND install_opts Pageflag)) (set ps_dest spo_dest))
(if (<> (exists ps_dest) 2) (makedir ps_dest (infos)))
)
)
(set @default-dest ps_dest)
;******************************************************
;* Open First installation disk
;******************************************************
(if (AND install_opts (OR (OR psflag Genieflag) (OR Clipflag FAISflag)))
(askdisk
(prompt "\n\n\nPlease insert the disk labeled \"Disk 1\".")
(help "Files need to be copied from this disk into your system.")
(dest "PP_disk_1")
)
)
; copy lz to ram
(copyfiles (source "PP_disk_1:c/lzx") (dest "ram:") (nogauge))
(if (NOT (exists "S:PPage.INI"))
(copyfiles (source "PP_disk_1:PPage.INI") (dest "S:") (nogauge))
)
(protect "S:PPage.INI" 0)
(if (AND install_opts Genieflag)
(
(set genie_dest (getassign "Rexx" "a"))
(if (= genie_dest "")
(if
(askbool
(prompt
"You do not have \"Rexx:\" assigned, are you SURE you want "
"to install genies? (they will be written to \"S:\")")
(help
"Be careful here: there are quite a number of genies which "
"could overflow your \"S:\" directory if it is on Floppy.")
(default 0)
)
(set genie_dest "S:")
)
)
(if (NOT (= genie_dest ""))
(
(working "\n\nInstalling Genies\n\nto\n\n" genie_dest)
(textfile
(dest "ram:install_script")
(append "cd \"" genie_dest "\"\n")
(append "ram:lzx -m x PP_disk_1:rexx.lzh * \n")
)
(execute "ram:install_script")
(delete "ram:install_script" (safe))
(working "\n\nUpdating s:PPage.INI...")
(textfile (dest "s:PPage.INI")
(include "s:PPage.INI")
(append "GE " genie_dest "\n")
)
(set pgenie_dest (tackon ps_dest "pagegenies"))
(if (<> (exists pgenie_dest) 2) (makedir pgenie_dest (infos)))
(working "\n\nInstalling Page Genies\n\nto\n\n" pgenie_dest)
(textfile
(dest "ram:install_script")
(append "cd \"" pgenie_dest "\"\n")
(append "ram:lzx -m x PP_disk_1:pagegenies.lzh * \n")
)
(textfile (dest "s:PPage.INI")
(include "s:PPage.INI")
(append "PG " pgenie_dest "\n")
)
(execute "ram:install_script")
(delete "ram:install_script" (safe))
)
)
)
)
(if (AND install_opts FAISflag)
(
(if (<> (exists fs_dest) 2) (makedir fs_dest (infos)))
(copyfiles (source "PP_disk_1:FAISload") (dest fs_dest) (infos))
(copyfiles (source "PP_disk_1:CreateFont") (dest fs_dest) (infos))
)
)
(if (AND install_opts Clipflag)
(
(if (<> (exists clip_dest) 2) (makedir clip_dest (infos)))
(working "\n\nInstalling Professional Draw Clips\n\n"
"to\n\n" (tackon clip_dest "Clips"))
(textfile
(dest "ram:install_script")
(append "cd \"" clip_dest "\"\n")
(append "ram:lzx -m x PP_disk_1:Clips.lzh * \n")
)
(execute "ram:install_script")
(delete "ram:install_script" (safe))
)
)
(if (AND install_opts spflag)
(
(if (<> (exists spo_dest) 2) (makedir spo_dest (infos)))
(working "\n\nInstalling Print Spooler \n\nto\n\n" spo_dest)
(textfile
(dest "ram:install_script")
(append "cd ram:\n")
(append "ram:lzx -m x PP_disk_1:prospool.lzh * \n")
)
(execute "ram:install_script")
(copyfiles (source "ram:prospool") (dest spo_dest) (infos) (nogauge))
(copyfiles (source "ram:prospool-handler") (dest "L:") (nogauge))
(delete "ram:install_script" (safe))
(delete "ram:prospool*" (safe))
)
)
;******************************************************
;* Open Second installation disk
;******************************************************
(if (AND install_opts Pageflag)
(askdisk
(prompt "\n\n\nPlease insert the disk labeled \"Disk 2\".")
(help
"Professional Page will be copied from this disk into your system.")
(dest "PP_disk_2")
)
)
(if (AND install_opts Pageflag)
(
(set data_dest (tackon ps_dest "Data"))
(set filter_dest (tackon ps_dest "filters"))
(if (<> (exists ps_dest) 2) (makedir ps_dest (infos)))
(if (<> (exists data_dest) 2) (makedir data_dest))
(if (<> (exists filter_dest) 2) (makedir filter_dest))
(working "\n\nInstalling Professional Page\n\nto\n\n" ps_dest)
(textfile
(dest "ram:install_script")
(append "cd \"" ps_dest "\"\n")
(append "ram:lzx -m x PP_disk_2:PPage.lzh * \n")
(append "cd \"" data_dest "\"\n")
(append "ram:lzx -m x PP_disk_2:data.lzh * \n")
(append "cd \"" filter_dest "\"\n")
(append "ram:lzx -m x PP_disk_2:filters.lzh * \n")
(append "cd ram:\n")
(append "ram:lzx -m x PP_disk_2:libs.lzh * \n")
)
(execute "ram:install_script")
(copylib (source "ram:FontEngine.library") (dest "libs:"))
(copylib (source "ram:IFFParse.library") (dest "libs:"))
(if (= (exists "libs:asl.library") 1)
(copylib (source "ram:asl.library") (dest "libs:"))
)
(copylib (source "ram:GDArexxSupport.library") (dest "libs:"))
(copylib (source "ram:golddisk.library") (dest "libs:"))
(delete "ram:FontEngine.library" (safe))
(delete "ram:IFFParse.library" (safe))
(delete "ram:asl.library" (safe))
(delete "ram:GDArexxSupport.library" (safe))
(delete "ram:golddisk.library" (safe))
(delete "ram:install_script" (safe))
(working "\n\nUpdating s:PPage.INI...")
(textfile (dest "s:PPage.INI")
(include "s:PPage.INI")
(append "PR " data_dest "\n")
(append "HY " data_dest "\n")
(append "PC " data_dest "\n")
(append "PP " ps_dest "\n")
(append "TF " filter_dest "\n")
)
)
)
;******************************************************
;* Open Third installation disk
;******************************************************
(if (AND install_opts Fontsflag)
(askdisk
(prompt "\n\n\nPlease insert the disk labeled \"Disk 3\".")
(help "Fonts and AE will be coppied from this disk into your system.")
(dest "PP_disk_3")
)
)
(if (AND install_opts Fontsflag)
(
(if (<> (exists cg_dest) 2) (makedir cg_dest))
(working "\n\nInstalling CG Fonts\n\nto\n\n" cg_dest)
(copyfiles (source "PP_disk_3:CG_Update") (dest cg_dest))
(textfile
(dest "ram:install_script")
(append "cd \"" cg_dest "\"\n")
(append "ram:lzx -m x PP_disk_3:cgfonts.lzh * \n")
(append "ram:lzx -m x PP_disk_3:psfonts.lzh * \n")
)
(execute "ram:install_script")
(delete "ram:install_script" (safe))
(working "\n\nUpdating s:PPage.INI...")
(textfile (dest "s:PPage.INI")
(include "s:PPage.INI")
(append "FE " cg_dest "\n")
(append "PSF " (tackon cg_dest "ps") "\n")
)
(working "\n\nUpdating CGFonts:if.fnt...")
(makeassign "CGFonts" cg_dest)
(run "CGFonts:CG_Update")
)
)
(if (AND install_opts BMFontsflag)
(
(if (<> (exists font_dest) 2) (makedir font_dest))
(working "\n\nInstalling Fonts\n\nto\n\n" font_dest)
(textfile
(dest "ram:install_script")
(append "cd \"" font_dest "\"\n")
(append "ram:lzx -m x PP_disk_3:fonts.lzh * \n")
)
(execute "ram:install_script")
(delete "ram:install_script" (safe))
(makeassign "Fonts" font_dest)
)
)
;******************************************************
;* Open Fourth installation disk
;******************************************************
(if (AND install_opts (OR (OR AEflag Fmanflag) (OR GrEflag Tutflag)))
(askdisk
(prompt "\n\n\nPlease insert the disk labeled \"Disk 4\".")
(help "Fonts and AE will be coppied from this disk into your system.")
(dest "PP_disk_4")
)
)
(if (AND install_opts AEflag)
(
(if (<> (exists ae_dest) 2) (makedir ae_dest))
(copyfiles (source "PP_disk_4:AE") (dest ae_dest) (infos))
(copyfiles (source "PP_disk_4:TransSpell") (dest ae_dest) (infos))
(copyfiles (source "PP_disk_4:pfsf6b90k") (dest ae_dest) (infos))
(working "\n\nUpdating s:PPage.INI...")
(textfile (dest "s:PPage.INI")
(include "s:PPage.INI")
(append "AE " ae_dest "\n")
)
)
)
(if (AND install_opts Fmanflag)
(
(set fmm_dest (tackon fm_dest "fntman_modules"))
(if (<> (exists fm_dest) 2) (makedir fm_dest (infos)))
(if (<> (exists fmm_dest) 2) (makedir fmm_dest (infos)))
(copyfiles (source "PP_disk_4:FontManager") (dest fm_dest) (infos))
(working "\n\nInstalling Font Manager modules\n\nto\n\n" fm_dest)
(textfile
(dest "ram:install_script")
(append "cd \"" fmm_dest "\"\n")
(append "ram:lzx -m x PP_disk_4:fntman_modules.lzh * \n")
)
(execute "ram:install_script")
(delete "ram:install_script" (safe))
)
)
(if (AND install_opts GrEflag)
(
(if (<> (exists pnt_dest) 2) (makedir pnt_dest))
(copyfiles (source "PP_disk_4:GrE") (dest pnt_dest) (infos))
(working "\n\nUpdating s:PPage.INI...")
(textfile (dest "s:PPage.INI")
(include "s:PPage.INI")
(append "PNT " (tackon pnt_dest "GrE") "\n")
)
)
)
(if (AND install_opts Tutflag)
(
(if (<> (exists tut_dest) 2) (makedir tut_dest))
(set tutd_dest (tackon tut_dest "NewsLetter"))
(if (<> (exists tutd_dest) 2) (makedir tutd_dest))
(working "\n\nInstalling Tutorial files\n\nto\n\n" tutd_dest)
(textfile
(dest "ram:install_script")
(append "cd \"" tutd_dest "\"\n")
(append "ram:lzx -m x PP_disk_4:NewsLetter.lzh * \n")
)
(execute "ram:install_script")
(delete "ram:install_script" (safe))
)
)
(exit)